#define _CRT_SECURE_NO_WARNINGS 1

#include "Seqlist.h"


void testSeqList1(void)
{
	SL s;
	InitSL(&s);
	SeqListPushBack(&s, 1);
	SeqListPushBack(&s, 2);
	SeqListPushBack(&s, 3);
	SeqListPushBack(&s, 4);
	SeqListPushBack(&s, 5);
	SeqListPushBack(&s, 6);

	//SeqListPopBack(&s);
	//SeqListPopBack(&s);
	SeqListErase(&s, 2);

	int ret = SeqListFind(&s,3);

	SeqListPrint(&s);
	printf("\n%d", ret);
}
void testSeqList2(void)
{
	SL s;
	InitSL(&s);
	SeqListPushFront(&s, 1);
	SeqListPushFront(&s, 2);
	SeqListPushFront(&s, 3);
	SeqListPushFront(&s, 4);
	SeqListPushFront(&s, 5);

	SeqListPopFront(&s);

	SeqListInsert(&s, 2, 40);
	SeqListErase(&s, 2);
	SeqListPrint(&s);
}


int main()
{
	testSeqList1();
	//testSeqList2();

	return 0;
}